package com.ten.mall.vo;

import java.util.ArrayList;
import java.util.List;

public class MyMessageExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MyMessageExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andMessageTitleIsNull() {
            addCriterion("message_title is null");
            return (Criteria) this;
        }

        public Criteria andMessageTitleIsNotNull() {
            addCriterion("message_title is not null");
            return (Criteria) this;
        }

        public Criteria andMessageTitleEqualTo(String value) {
            addCriterion("message_title =", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotEqualTo(String value) {
            addCriterion("message_title <>", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleGreaterThan(String value) {
            addCriterion("message_title >", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleGreaterThanOrEqualTo(String value) {
            addCriterion("message_title >=", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleLessThan(String value) {
            addCriterion("message_title <", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleLessThanOrEqualTo(String value) {
            addCriterion("message_title <=", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleLike(String value) {
            addCriterion("message_title like", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotLike(String value) {
            addCriterion("message_title not like", value, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleIn(List<String> values) {
            addCriterion("message_title in", values, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotIn(List<String> values) {
            addCriterion("message_title not in", values, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleBetween(String value1, String value2) {
            addCriterion("message_title between", value1, value2, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessageTitleNotBetween(String value1, String value2) {
            addCriterion("message_title not between", value1, value2, "messageTitle");
            return (Criteria) this;
        }

        public Criteria andMessagDetailIsNull() {
            addCriterion("messag_detail is null");
            return (Criteria) this;
        }

        public Criteria andMessagDetailIsNotNull() {
            addCriterion("messag_detail is not null");
            return (Criteria) this;
        }

        public Criteria andMessagDetailEqualTo(String value) {
            addCriterion("messag_detail =", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailNotEqualTo(String value) {
            addCriterion("messag_detail <>", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailGreaterThan(String value) {
            addCriterion("messag_detail >", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailGreaterThanOrEqualTo(String value) {
            addCriterion("messag_detail >=", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailLessThan(String value) {
            addCriterion("messag_detail <", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailLessThanOrEqualTo(String value) {
            addCriterion("messag_detail <=", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailLike(String value) {
            addCriterion("messag_detail like", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailNotLike(String value) {
            addCriterion("messag_detail not like", value, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailIn(List<String> values) {
            addCriterion("messag_detail in", values, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailNotIn(List<String> values) {
            addCriterion("messag_detail not in", values, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailBetween(String value1, String value2) {
            addCriterion("messag_detail between", value1, value2, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessagDetailNotBetween(String value1, String value2) {
            addCriterion("messag_detail not between", value1, value2, "messagDetail");
            return (Criteria) this;
        }

        public Criteria andMessageTextIsNull() {
            addCriterion("message_text is null");
            return (Criteria) this;
        }

        public Criteria andMessageTextIsNotNull() {
            addCriterion("message_text is not null");
            return (Criteria) this;
        }

        public Criteria andMessageTextEqualTo(String value) {
            addCriterion("message_text =", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextNotEqualTo(String value) {
            addCriterion("message_text <>", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextGreaterThan(String value) {
            addCriterion("message_text >", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextGreaterThanOrEqualTo(String value) {
            addCriterion("message_text >=", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextLessThan(String value) {
            addCriterion("message_text <", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextLessThanOrEqualTo(String value) {
            addCriterion("message_text <=", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextLike(String value) {
            addCriterion("message_text like", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextNotLike(String value) {
            addCriterion("message_text not like", value, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextIn(List<String> values) {
            addCriterion("message_text in", values, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextNotIn(List<String> values) {
            addCriterion("message_text not in", values, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextBetween(String value1, String value2) {
            addCriterion("message_text between", value1, value2, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageTextNotBetween(String value1, String value2) {
            addCriterion("message_text not between", value1, value2, "messageText");
            return (Criteria) this;
        }

        public Criteria andMessageUrlIsNull() {
            addCriterion("message_url is null");
            return (Criteria) this;
        }

        public Criteria andMessageUrlIsNotNull() {
            addCriterion("message_url is not null");
            return (Criteria) this;
        }

        public Criteria andMessageUrlEqualTo(String value) {
            addCriterion("message_url =", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotEqualTo(String value) {
            addCriterion("message_url <>", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlGreaterThan(String value) {
            addCriterion("message_url >", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlGreaterThanOrEqualTo(String value) {
            addCriterion("message_url >=", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlLessThan(String value) {
            addCriterion("message_url <", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlLessThanOrEqualTo(String value) {
            addCriterion("message_url <=", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlLike(String value) {
            addCriterion("message_url like", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotLike(String value) {
            addCriterion("message_url not like", value, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlIn(List<String> values) {
            addCriterion("message_url in", values, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotIn(List<String> values) {
            addCriterion("message_url not in", values, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlBetween(String value1, String value2) {
            addCriterion("message_url between", value1, value2, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessageUrlNotBetween(String value1, String value2) {
            addCriterion("message_url not between", value1, value2, "messageUrl");
            return (Criteria) this;
        }

        public Criteria andMessagePicIsNull() {
            addCriterion("message_pic is null");
            return (Criteria) this;
        }

        public Criteria andMessagePicIsNotNull() {
            addCriterion("message_pic is not null");
            return (Criteria) this;
        }

        public Criteria andMessagePicEqualTo(String value) {
            addCriterion("message_pic =", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicNotEqualTo(String value) {
            addCriterion("message_pic <>", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicGreaterThan(String value) {
            addCriterion("message_pic >", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicGreaterThanOrEqualTo(String value) {
            addCriterion("message_pic >=", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicLessThan(String value) {
            addCriterion("message_pic <", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicLessThanOrEqualTo(String value) {
            addCriterion("message_pic <=", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicLike(String value) {
            addCriterion("message_pic like", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicNotLike(String value) {
            addCriterion("message_pic not like", value, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicIn(List<String> values) {
            addCriterion("message_pic in", values, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicNotIn(List<String> values) {
            addCriterion("message_pic not in", values, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicBetween(String value1, String value2) {
            addCriterion("message_pic between", value1, value2, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessagePicNotBetween(String value1, String value2) {
            addCriterion("message_pic not between", value1, value2, "messagePic");
            return (Criteria) this;
        }

        public Criteria andMessageStateIsNull() {
            addCriterion("message_state is null");
            return (Criteria) this;
        }

        public Criteria andMessageStateIsNotNull() {
            addCriterion("message_state is not null");
            return (Criteria) this;
        }

        public Criteria andMessageStateEqualTo(Integer value) {
            addCriterion("message_state =", value, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateNotEqualTo(Integer value) {
            addCriterion("message_state <>", value, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateGreaterThan(Integer value) {
            addCriterion("message_state >", value, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("message_state >=", value, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateLessThan(Integer value) {
            addCriterion("message_state <", value, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateLessThanOrEqualTo(Integer value) {
            addCriterion("message_state <=", value, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateIn(List<Integer> values) {
            addCriterion("message_state in", values, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateNotIn(List<Integer> values) {
            addCriterion("message_state not in", values, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateBetween(Integer value1, Integer value2) {
            addCriterion("message_state between", value1, value2, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageStateNotBetween(Integer value1, Integer value2) {
            addCriterion("message_state not between", value1, value2, "messageState");
            return (Criteria) this;
        }

        public Criteria andMessageTestIsNull() {
            addCriterion("message_test is null");
            return (Criteria) this;
        }

        public Criteria andMessageTestIsNotNull() {
            addCriterion("message_test is not null");
            return (Criteria) this;
        }

        public Criteria andMessageTestEqualTo(String value) {
            addCriterion("message_test =", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestNotEqualTo(String value) {
            addCriterion("message_test <>", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestGreaterThan(String value) {
            addCriterion("message_test >", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestGreaterThanOrEqualTo(String value) {
            addCriterion("message_test >=", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestLessThan(String value) {
            addCriterion("message_test <", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestLessThanOrEqualTo(String value) {
            addCriterion("message_test <=", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestLike(String value) {
            addCriterion("message_test like", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestNotLike(String value) {
            addCriterion("message_test not like", value, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestIn(List<String> values) {
            addCriterion("message_test in", values, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestNotIn(List<String> values) {
            addCriterion("message_test not in", values, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestBetween(String value1, String value2) {
            addCriterion("message_test between", value1, value2, "messageTest");
            return (Criteria) this;
        }

        public Criteria andMessageTestNotBetween(String value1, String value2) {
            addCriterion("message_test not between", value1, value2, "messageTest");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}